<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/**
 * 袁楷路由
 */
Route::group(['namespace'=>'Api\v1'],function (){
    //高德地图接口
    Route::get('map',[\App\Http\Controllers\Api\v1\Gaocontroller::class,'map']);
    //客服列表展示
    Route::get('service_index',[\App\Http\Controllers\Api\v1\ServiceController::class,'service_index']);
    //客户留言列表展示
    Route::get('leaver_index',[\App\Http\Controllers\Api\v1\ServiceController::class,'leaver_index']);
    //小程序客服多功能聊天获取userSig接口
    Route::get('sdk',[\App\Http\Controllers\Api\v1\Tencent::class,'sdk']);
    //账号-小程序客服多功能聊天获取userSig接口
    Route::get('admin',[\App\Http\Controllers\Api\v1\Tencent::class,'admin']);
    //房源列表接口
    Route::get('list',[\App\Http\Controllers\Api\v1\FangController::class,'list']);
    //房源分类查询接口
    Route::get('search',[\App\Http\Controllers\Api\v1\FangController::class,'search']);
    //附近房源接口
    Route::get('nearby',[\App\Http\Controllers\Api\v1\FangController::class,'nearby']);
    //价格区间查询接口
    Route::get('price',[\App\Http\Controllers\Api\v1\FangController::class,'price']);
    //房源户型查询接口
    Route::get('house_type',[\App\Http\Controllers\Api\v1\FangController::class,'house_type']);
    //房源多条件搜索
    Route::get('more',[\App\Http\Controllers\Api\v1\FangController::class,'more']);
    //房源经纬度转换
    Route::get('map',[\App\Http\Controllers\Api\v1\FangController::class,'map']);


    //门店数据展示
    Route::get('store_list',[\App\Http\Controllers\Api\v1\StoreController::class,'store_list']);
    //门店数据添加
    Route::post('store_add',[\App\Http\Controllers\Api\v1\StoreController::class,'store_add']);
    //门店数据删除
    Route::get('store_del',[\App\Http\Controllers\Api\v1\StoreController::class,'store_del']);
    //门店数据搜索
    Route::get('store_search',[\App\Http\Controllers\Api\v1\StoreController::class,'store_search']);
    //门店数据详情
    Route::get('store_details',[\App\Http\Controllers\Api\v1\StoreController::class,'store_details']);
    //门店数据修改
    Route::post('store_modify',[\App\Http\Controllers\Api\v1\StoreController::class,'store_modify']);
    //门店查看评论
    Route::get('store_comments',[\App\Http\Controllers\Api\v1\StoreController::class,'store_comments']);
    //门店发布评论
    Route::post('store_publish',[\App\Http\Controllers\Api\v1\StoreController::class,'store_publish']);


    //短信发送
    Route::get('sms',[\App\Http\Controllers\Api\v1\SmsController::class,'sms']);
    //直播
    Route::get('live',[\App\Http\Controllers\Api\v1\LiveController::class,'live']);
    //mangodb存储聊天记录
    Route::post('sendMsg',[\App\Http\Controllers\Api\v1\MassageController::class,'sendMsg']);


    //签到
    Route::post('sign',[\App\Http\Controllers\Api\v1\SignController::class,'sign']);
    //查看是否签到
    Route::get('getSign',[\App\Http\Controllers\Api\v1\SignController::class,'getSign']);
    //查看本月签到的天数
    Route::get('getCount',[\App\Http\Controllers\Api\v1\SignController::class,'getCount']);
    //查看连续签到天数
    Route::get('getField',[\App\Http\Controllers\Api\v1\SignController::class,'getField']);
});
